package com.yanqu.road.server.cmd.charitable;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.charitable.CharitableModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @Author wpj
 * @Date 2020/8/30
 */
@Cmd(code = GameProtocol.S_CHARITABLE_SET_IN_SYSTEM, desc = "行善")
public class CharitableSetInSystemCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }


    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(CharitableModule.class).setInSystem();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
